package org.geo.common.response.model;

import lombok.Data;

/**
 * 返回消息对象
 *
 * @author ljy
 */
@Data
public class JsonResponse {
    /**
     * 返回的状态码
     */
    private Integer statusCode;
    /**
     * 返回的消息
     */
    private String message;
    /**
     * 返回的对象的个数
     */
    private Integer totalCount;
    /**
     * 返回的结果对象
     */
    private Object result;

    public JsonResponse statusCode(Integer statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    public JsonResponse message(String message) {
        this.message = message;
        return this;
    }

    public JsonResponse totalCount(Integer totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public JsonResponse result(Object result) {
        this.result = result;
        return this;
    }

}
